import Http from '@/utils/httpUtil'
export function getUserAdd(data) { // 用户新增
  return Http.post('ucenter/users-info/addUsers', data)
}

export function getUserList(data) { // 用户列表
  return Http.get('ucenter/users-info/getUserList', data)
}

export function getOrgByUser(data) { // 根据用户id获取组织
  return Http.get(`${'ucenter'}/role/getRoleById`, data)
}

export function getOrgAll() { // 获取所有组织
  return Http.get('ucenter/org/all')
}

// 通过id 过去用户详情
export const getUserInfoById = param => Http.get('ucenter/users-info/getUserInfoById/', param)

// 修改用户信息
export const updateUsers = param => Http.post('ucenter/users-info/updateUsers', param)

// 删除用户
export const deleteUsers = param => Http.post('ucenter/users-info/deleteUsers', param)

// 用户移交
export const transferAccount = param => Http.post('ucenter/users-info/transferAccount', param)
